package UI;

import java.awt.event.ActionEvent;

public class CallListener implements java.awt.event.ActionListener{
	public void actionPerformed(ActionEvent e){
		showCall();
	}

public void showCall(){
	javax.swing.JFrame frame=new javax.swing.JFrame("Calculator");
	frame.setSize(160,200);

	javax.swing.JTextField blank=new javax.swing.JTextField(12);
	frame.add(blank);

	java.awt.FlowLayout fl=new java.awt.FlowLayout();
	frame.setLayout(fl);

	for(int i=1;i<10;i++){
		javax.swing.JButton butt=new javax.swing.JButton(" "+i);
		frame.add(butt);
	}
	
	javax.swing.JButton butt1=new javax.swing.JButton(" "+"*");
	butt1.setBackground(java.awt.Color.red);
	frame.add(butt1);
	javax.swing.JButton butt2=new javax.swing.JButton(" "+0);
	frame.add(butt2);
	javax.swing.JButton butt3=new javax.swing.JButton(" "+"#");
	frame.add(butt3);
	butt3.setBackground(java.awt.Color.blue);

	frame.setVisible(true);
	frame.setAlwaysOnTop(true);
	frame.setResizable(false);
}
}
